package com.example.Server;

//import org.springframework.cloud.openfeign.FeignClient;
import com.example.Model.JudegeFeginData;
import com.example.Model.JudegeResult;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/*
* 封装一个远程调用接口
*
 */

@FeignClient(value = "JudgeServer",url="127.0.0.1:9998")
public interface iJudgedao {

    @RequestMapping(value = "/Judge",
            method = RequestMethod.POST,
            consumes = "application/x-www-form-urlencoded;charset=UTF-8")
    JudegeResult Judge(JudegeFeginData Code);
}
